<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2021/9/6
  Time: 11:23
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
    <%
        //读取Cookie
        Cookie[] cookies=request.getCookies();
        //输出每个cookie的名称和值
        for (int i=0;i<cookies.length;i++){
            out.println(cookies[i].getName()+" "+cookies[i].getValue());
        }
    %>
</body>
</html>
